Skip to content

fix(ci): skip pr-title validation on dependabot PRs#43

Merged
lucasidev merged 1 commit intomainfrom
fix/pr-title-skip-dependabot
May 1, 2026
Merged

fix(ci): skip pr-title validation on dependabot PRs#43
lucasidev merged 1 commit intomainfrom
fix/pr-title-skip-dependabot

Conversation

@lucasidev
Copy link
Copy Markdown
Owner

Resumen

Bug encontrado al triar la wave de Dependabot: pr-title.yml falla en los 3 backend Dependabot PRs (#39, #40, #41) por título capitalizado. Sus commits SÍ son CC válidos, sólo el title difiere. Skipear el actor dependabot[bot] cierra el falso negativo sin debilitar la regla para humanos.

Cambios

.github/workflows/pr-title.yml: agregar if: github.actor != 'dependabot[bot]' al job.

Tests

  • No aplica (config workflow).

Probado

Notas

Después de mergear este PR, los Dependabot PRs en cola pasan a tener PR title check skipped en lugar de failed. Backend group + major bumps quedan listos para mergear (CI backend ya verde). Frontend major bumps van a seguir fallando frontend CI por incompatibilidades reales (TS6, zod4, vitest4, lucide1) — esos los tratamos por separado.

Dependabot genera PR titles con la primera letra del subject capitalizada
(ej. "Bump the backend-minor-patch group with 8 updates"), lo cual rompe
nuestro subjectPattern `^(?![A-Z]).+$` de pr-title.yml. Falsos negativos
en los 3 backend Dependabot PRs (#39, #40, #41) lo evidenciaron.

Los commits internos de Dependabot SÍ siguen Conventional Commits
("build(deps): bump foo from X to Y"), así que pasan commits.yml y
alimentan changelog.yml correctamente. Sólo el PR title display difiere.

Skipear el actor dependabot[bot] mantiene la regla estricta para PRs
humanas (donde el title se vuelve commit en Squash y queremos que sea
CC válido) y evita el falso negativo en bots.
@lucasidev lucasidev merged commit 6aae01f into main May 1, 2026
4 checks passed
@lucasidev lucasidev deleted the fix/pr-title-skip-dependabot branch May 1, 2026 03:40
lucasidev added a commit that referenced this pull request May 1, 2026
PR #43 intentó skipear pr-title.yml para Dependabot usando
`github.actor != 'dependabot[bot]'`. No funcionó: en re-runs
(via @dependabot rebase comment), github.actor parece quedar con
el initiator del comment, no con el bot. Los runs de #39, #40, #41
siguieron fallando incluso después del rebase.

Fix: chequear `github.event.pull_request.user.login` que es el
creador del PR, invariante a re-runs/rebases. Para Dependabot PRs
ese campo siempre es 'dependabot[bot]'.

Verificable en logs de PR #40 run 25201147028: el job ejecutó (no
se skipeó), confirmando que la condición github.actor evaluó a true.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant